home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / libol / jpoll.h < prev    next >
C/C++ Source or Header  |  2005-10-16  |  809b  |  35 lines

  1. /* jpoll.h
  2.  *
  3.  * Header file for my poll() SVID3 emulation function.
  4.  *
  5.  * $Id: jpoll.h,v 1.7 2004/08/05 11:13:45 bazsi Exp $ */
  6.  
  7. /*
  8.  * AUTHOR:     Sean Reifschneider <jafo@tummy.com>
  9.  * DATE:       1998-10-10
  10.  * Copyright (c) 1998 Sean Reifschneider
  11.  *
  12.  */
  13.  
  14. #ifndef LSH_POLL_H_INCLUDED
  15. #define LSH_POLL_H_INCLUDED
  16.  
  17. #define POLLIN        0x0001        /*  check for input  */
  18. #define POLLHUP         0
  19. #define POLLNVAL        0
  20. #define POLLERR         0
  21. #define POLLPRI        0
  22. #define POLLOUT            0x0004        /*  check for output  */
  23.  
  24. struct pollfd {
  25.     int fd;                /*  file descriptor to poll  */
  26.     short events;        /*  events we are interested in  */
  27.     short revents;        /*  events that occured  */
  28.     };
  29.  
  30. typedef unsigned int nfds_t;
  31.  
  32. int poll(struct pollfd *fdlist, nfds_t count, int timeoutInMS);
  33.  
  34. #endif /* LSH_POLL_H_INCLUDED */
  35.